package com.graduate.cec.mapper;

import com.graduate.cec.pojo.dto.ArticleSimplePageDTO;
import com.graduate.cec.pojo.entity.Article;

import java.util.List;

import com.graduate.cec.pojo.vo.ArticleDetailVO;
import org.apache.ibatis.annotations.Param;

public interface ArticleMapper {

    int deleteByPrimaryKey(List<Long> id);


    int insertSelective(Article record);

    List<Article> selectByNationId(Long nationId);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article record);

    List<Article> selectAllList(Long categoryId);

    List<Article> getAllListByUser(Long userId);

    List<Article> getAllListByUserAndCollect(Long userId);

    List<ArticleDetailVO> getAllListManagement(ArticleSimplePageDTO articleSimplePageDTO);

    List<Article> selectByNation(Long id);


}